예제 #1
0
        private void OnMigrateAccount(object o, EventArgs args)
        {
            TreeSelection tSelect = AccTreeView.Selection;

            if (tSelect.CountSelectedRows() == 1)
            {
                TreeModel tModel;
                TreeIter  iter;

                tSelect.GetSelected(out tModel, out iter);
//				string id = (string) tModel.GetValue(iter, 0);
                MigrationWizard migratewiz = null;                 //new MigrationWizard(GetName(id), GetHomeLocation(id), ifws, this);

                migratewiz.TransientFor = topLevelWindow;
                if (!Util.RegisterModalWindow(migratewiz))
                {
                    try
                    {
                        Util.CurrentModalWindow.Present();
                    }
                    catch {}
                    migratewiz.Destroy();
                    return;
                }
                migratewiz.ShowAll();

                /*
                 *      if(curDomains.Count == 0)
                 *      {
                 *              this.Hide();
                 *              this.Destroy();
                 *      }
                 */
            }
        }
예제 #2
0
        private void OnMigrateAccount(object o, EventArgs args)
        {
            TreeSelection tSelect = AccTreeView.Selection;

            if (tSelect.CountSelectedRows() == 1)
            {
                TreeModel tModel;
                TreeIter  iter;

                tSelect.GetSelected(out tModel, out iter);
                string id     = (string)tModel.GetValue(iter, 0);
                string status = GetEncryptionStatus(id);
                bool   stat   = false;;
                if (status == null)
                {
                    stat = false;
                }
                else if (status == "BLWF")
                {
                    stat = true;
                }
                else
                {
                    stat = false;
                }
                MigrationWizard migratewiz = new MigrationWizard(GetName(id), GetHomeLocation(id), ifws, simws, this, stat);

                // migratewiz.TransientFor = topLevelWindow;
                if (!Util.RegisterModalWindow(migratewiz))
                {
                    try
                    {
                        Util.CurrentModalWindow.Present();
                    }
                    catch {}
                    migratewiz.Destroy();
                    return;
                }
                migratewiz.ShowAll();
            }
        }