示例#1
0
		public mainWindow () :
			base (Gtk.WindowType.Toplevel)
		{
			this.Build ();
			DeleteEvent += delegate {
				MainClass.terminateApp();
			};
				
			//Prüfe ob bereits CA's vorhanden sind anhand eines count()

			checkCACount ();

			//Wenn ja, kann beim Programm eine dieser CA's ausgewählt werden

			if (checkCaNum > 0) {
				sWin = new selectCA ("open",stateLoadCA,stateLoadReq,stateLoadCert,setLabel,setNoteBookFalse);
			}

			//Lege die einzelnen Tree-/Liststores und deren Spalten zur Darstellung der CA, Reqs. und Certs. an.

			mainNotebook.CurrentPage = 0;
			cellRend = new CellRendererText ();
			cellRend.Xalign = 0.0f;
			cellRend.Editable = true;
			caStore = new TreeStore (typeof(string),typeof(string));
			reqStore = new ListStore (typeof(string));
			reqInfoStore = new TreeStore (typeof(string), typeof(string));
			certStore = new ListStore (typeof(string) ,typeof(string),typeof(string));
			certInfoStore = new TreeStore (typeof(string), typeof(string));

			makeTreeColumn (caCategory, caStore, cellRend, 0, "Categorys", caTreeView);
			makeTreeColumn (caValues, caStore, cellRend, 1, "Values", caTreeView);

			makeListColumn (reqName, reqStore, cellRend, 0, "Imported Requests", reqTreeView);

			makeTreeColumn (reqInfoCat, reqInfoStore, cellRend, 0, "Categorys", reqInfoTreeView);
			makeTreeColumn (reqInfoVal, reqInfoStore, cellRend, 1, "Values", reqInfoTreeView);

			makeListColumn (certName, certStore, cellRend, 0, "Name", certTreeView);
			makeListColumn (certNo, certStore, cellRend, 1, "Serial", certTreeView);
			makeListColumn (certvalid, certStore, cellRend, 2, "Valid", certTreeView);

			makeTreeColumn (certInfoCat, certInfoStore, cellRend, 0, "Categorys", infoCertTreeView);
			makeTreeColumn (certInfoVal, certInfoStore, cellRend, 1, "Values", infoCertTreeView);
		


			caTreeView.Model = caStore;
			reqTreeView.Model = reqStore;
			reqInfoTreeView.Model = reqInfoStore;
			certTreeView.Model = certStore;
			infoCertTreeView.Model = certInfoStore;
		}
示例#2
0
		//GUI-Funktion zum Laden von CA's

		protected void OnOpenCAActionActivated (object sender, EventArgs e)
		{
			sWin = new selectCA ("open",stateLoadCA,stateLoadReq,stateLoadCert,setLabel,setNoteBookFalse);
		}