コード例 #1
0
        void ctrlHome_OnReq_SetDefaultGroup(object sender, EventArgs e)
        {
            frmSelectCardGroup scg = new frmSelectCardGroup();

            scg.ShowDialog();
            if (scg.IsCanceled == true)
            {
                return;
            }
            Globals.SetDefaultGroup(scg.SelectedGroupPath);
        }
コード例 #2
0
        void OnChangeDefaultGroupClicked(object sender, RoutedEventArgs e)
        {
            frmSelectCardGroup f = new frmSelectCardGroup();

            f.ShowDialog();
            if (f.IsCanceled == true)
            {
                return;
            }
            Globals.SetDefaultGroup(f.SelectedGroupPath);
            if (sender is CtrlExtButton)
            {
                CtrlExtButton btn          = (CtrlExtButton)sender;
                string        def_grp_name = Globals.GetDefaultGroupName();
                btn.Title = string.Format("Default Group: [{0}]", def_grp_name);
            }
        }