Giter VIP home page Giter VIP logo

yc.marketing's Introduction

欢迎使用 YC.Marketing

提供功能

  • 提供数据统计
  • 提供功能权限控制
  • 提供数据导出、导入功能

采用技术

  • C#
  • WPF
  • MVVM
  • LiveCharts
  • MaterialDesign

将会引入Win32Api 正在开发中

关于

  • QQ:29579895

  • blogs:https://www.cnblogs.com/Yangrx/

  • 邮箱地址自动链接 [email protected]

  • 因为自己的爱好,和给同行带来帮助,在平时空闲的时候来逐步完成此项目

  • 如果有意向一同开发 可以联系

  • 赞助 [

Style

YC.Client.UI.Resources >themes >OverallStyle.xaml 资源引入 YC.ClientView >Acceptance > InitMain()

<?c#
     System.Windows.Application.Current.Resources.MergedDictionaries.Clear();
        System.Windows.Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
        {
            Source = new Uri(
                "pack://application:,,,/YC.Client.UI.Resources;component/themes/OverallStyle.xaml",
                UriKind.RelativeOrAbsolute)
        });
?>

Run

  • 反射出主程序
 var clientAssbly = Assembly.LoadFrom(AppDomain.CurrentDomain.BaseDirectory + "\\YC.ClientView.dll");
            Activator.CreateInstance(clientAssbly.GetType("YC.ClientView.Acceptance"));
            if (Application.Current!=null)
            {
                Application.Current.Shutdown(0);
            }
  • 登录账号随便输入
  • 登录成功 通过对应Entity 查询出功能数据源 (加载Win32API 保存程序句柄 正在开发)
      LoginResultData.TheMainConfig = DataRequest<UcGnglEntity>.Addition(new UcGnglEntity());
  • 进行功能对应操作
 MainGroups = new ObservableCollection<MainModel>();
            MainModel model = new MainModel
            {
                UserInfo = new LoginUserInfo()
                {
                    UserName = "洋葱",
                    UserIcon = "HaderIcon",
                }
            };
            var tabFun = LoginResultData.TheMainConfig.Where(s => s.GNLX == 1).OrderBy(s => s.JDPX).ToList();
            if (tabFun.Any())
            {
                tabFun.ForEach((ary) =>
                {
                    PageModule pageModel = new PageModule(ary.JDMC, ary.JDSX, ary.JDPX);
                    model.Modules.Add(pageModel);
                });
            }

            //初始化模块
            Open(model.Modules.First());
            MainGroups.Add(model);
            GC.Collect();

打开对应功能

  • View 建立静态属性 给静态属性赋值 来改变界面 YC.ClientView> MainEmbed.xaml
   <ContentControl  Grid.Row="1" FocusVisualStyle="{x:Null}" Margin="15" Content="{Binding Path=(commons:RefreshCommon.SelectMenuGroup)}" />
  • ViewModel 通过对应的Model 打开窗体 YC.ViewModel> MainViewModel > open()
  RefreshCommon.IndexName = model.FunName;
                var polymorphismAssbly =
                    Assembly.LoadFrom(AppDomain.CurrentDomain.BaseDirectory + "\\YC.ClientView.dll");
                if (string.IsNullOrEmpty(model.OpenSpace))
                {
                    RefreshCommon.SelectMenuGroup = Common.GetUserControl("YC.ClientView.DefaultViewPage");
                    return;
                }
            
                var log = polymorphismAssbly.CreateInstance(model.OpenSpace) is IModel;
                if (log)
                {
                    var dialog = polymorphismAssbly.CreateInstance(model.OpenSpace) as IModel;
                    dialog?.BindDefaultModel();
                    if (dialog != null) RefreshCommon.SelectMenuGroup = dialog.GetView();
                }

目前采用依赖注入 后续会改为反射

功能部分截图

工作区

感谢 以下项目不区分排行

End

yc.marketing's People

Contributors

yc946586 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.