示例#1
0
        private void cmdAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!CHelper.VerifyAccessRight("SASS_VM_ADD"))
            {
                return;
            }

            WinAddEditInstance w = new WinAddEditInstance();

            w.ParentItemSource = itemSources;
            w.Mode             = "A";
            w.Title            = (String)(sender as Button).Content + " " + CLanguage.getValue("project");
            w.ShowDialog();
        }
示例#2
0
        private void showEditWindow()
        {
            if (!CHelper.VerifyAccessRight("SASS_VM_VIEW"))
            {
                return;
            }

            MProject v = (MProject)currentObj;

            WinAddEditInstance w = new WinAddEditInstance();

            w.Mode     = "E";
            w.ViewData = v;
            w.Title    = CLanguage.getValue("edit") + " " + CLanguage.getValue("project");
            w.ShowDialog();
        }