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

            WinAddEditDiskImage w = new WinAddEditDiskImage();

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

            MDiskImage v = (MDiskImage)currentObj;

            WinAddEditDiskImage w = new WinAddEditDiskImage();

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